package com.osce.score.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csce.domain.entity.score.ScoreExExamStudent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 考试学员Mapper接口
 *
 * @author zzx
 * @since 2023-09-05
 */
@Repository
public interface ScoreExExamStudentMapper extends BaseMapper<ScoreExExamStudent> {

    /**
     * 查询考试学员
     *
     * @param id 考试学员主键
     * @return 考试学员
     */
    ScoreExExamStudent selectScoreExExamStudentById(Long id);

    /**
     * 查询考试学员列表
     *
     * @param scoreExExamStudent 考试学员
     * @return 考试学员集合
     */
    List<ScoreExExamStudent> selectScoreExExamStudentList(ScoreExExamStudent scoreExExamStudent);

    /**
     * 新增考试学员
     *
     * @param scoreExExamStudent 考试学员
     * @return 结果
     */
    int insertScoreExExamStudent(ScoreExExamStudent scoreExExamStudent);

    /**
     * 修改考试学员
     *
     * @param scoreExExamStudent 考试学员
     * @return 结果
     */
    int updateScoreExExamStudent(ScoreExExamStudent scoreExExamStudent);

    /**
     * 删除考试学员
     *
     * @param id 考试学员主键
     * @return 结果
     */
    int deleteScoreExExamStudentById(Long id);

    /**
     * 批量删除考试学员
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteScoreExExamStudentByIds(Long[] ids);

    List<Long> selectScoreExExamStudentCheckIds(Long examId);

    int batchInsertExExamStudent(@Param("list") List<ScoreExExamStudent> students);

    int batchDeleteScoreExExamStudentByIds(@Param("examId") Long examId, @Param("list") List<Long> userIdList);

    int deleteScoreExExamStudentByExamId(Long examId);

    int deleteScoreExExamStudentByExamIds(Long[] examIds);
}
